package Dame;

import java.util.Arrays;

public class StringDame {
    public static void main(String[] args) {
        String s = "10 20 30 40 50";
        String[] srr = s.split(" ");
        int arr [] = new int [srr.length];
        for (int i = 0; i < arr.length; i++) {
            int num = Integer.parseInt(srr[i]);
            arr[i]=num;
        }
        System.out.println(Arrays.toString(arr));
    }
}
